package cn.lefull.jpa.service.impl;

import cn.lefull.jpa.entity.Department;
import cn.lefull.jpa.repository.DepartmentRepository;
import cn.lefull.jpa.service.DepartmentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
* @description: 
* @author: qijiang email:jiang1211@foxmail.com 
* @date: 2018-12-25 10:15:15 
*/
@Service("departmentService")
@Slf4j
public class DepartmentServiceImpl implements DepartmentService {

    @Resource
    private DepartmentRepository departmentRepository;
    @Override
    public List<Department> findAll() {
        return departmentRepository.findAll();
    }
}